<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 55px;
            height: 22px;
            font-size: 14px;
            background-color: green;
            text-align: center;
            line-height: 22px;
            color: yellow;
        }
        i{
            width: 0;
            height: 0;
            border: 5px solid transparent;
            border-top-color: pink;
            display: inline-block;
        }
    </style>
</head>
<body>
<div >
    上海<i></i>
</div>

</body>
</html>